let g:animal_kind = 'cat'
let g:animal_name = 'Tom'

let g:animal_kind = 'dog'
let g:animal_name = 'Jack'

let g:animal_kind = 'duck'
let g:animal_name = 'TangLaoYa'

if g:animal_kind == 'cat'
    echo g:animal_name . ' is a cat'
elseif g:animal_kind == 'dog'
    echo g:animal_name . ' is a dog'
else
    echo g:animal_name . ' is something else'
endif
